"use strict";
const path = require("path");

function resolve(dir) {
  return path.join(__dirname, ".", dir);
}

module.exports = {
  publicPath: "./",
  devServer: {
    port: 8090
  },
  productionSourceMap: true,
  configureWebpack: {
    devtool: "cheap-module-eval-source-map",
    context: path.resolve(__dirname, "./"),
    resolve: {
      extensions: [".js", ".vue", ".json"],
      alias: {
        "@": resolve("src")
        //修改后分别推送到华为云 和gitee
        // "@views": resolve("src/views"),
        // "@comp": resolve("src/components"),
        // "@core": resolve("src/core"),
        // "@utils": resolve("src/utils"),
      }
    }
  }
};

